package hy.dao;

import hy.beans.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IUserDao {
    User selectById(Integer id);
    List<User> selectAll();
    List<User>findByName(String name);
    Integer insertUser(User u);
    void deleteUserById(Integer id);
    void updateUser(User u);
    List<User>select1(String name);
    List<User>select2(@Param("tablename")String tn, @Param("tableorder")String on);

    List<User>select3();
    List<User>select5(@Param("name") String name, @Param("password") String pass);
    List<User> selectAll_tel();
    List<User> selectAll_phone();
}